package idv.jieh.commons.io;

import java.io.*;

public class SystemExit {

  public static void exit(){
    exit("無今日簡訊資料，按任意鍵結束程式！");
  }

  public static void exit(String msg){
    System.out.println(msg);
    try{
      new BufferedReader(new InputStreamReader(System.in)).readLine();
    }catch(Exception e){}
    System.exit(1);
  }

}
